# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=atk
pkgver=2.36.0
pkgrel=0
pkgdesc="A library providing a set of interfaces for accessibility"
url="https://www.gtk.org/"
arch="all"
license="LGPL-2.0-or-later"
makedepends="glib-dev gobject-introspection-dev musl-utils meson gtk-doc"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/atk/${pkgver%.*}/atk-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--buildtype=plain \
		--sysconfdir=/etc \
		--buildtype=plain \
		-Ddocs=true \
		output .
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="d0f18204eaf96511e8448e3dfbc4b6953a7cf8b816151fb7caf5592cf578572b1cdb16836fe2157b11e3ad018ef171f1ca1bfdf255bb31bb455716d7519fd634  atk-2.36.0.tar.xz"
